package avicit.bdp.dms.tdm.dto;

import avicit.bdp.common.base.BaseDTO;
import avicit.platform6.core.annotation.log.FieldRemark;
import avicit.platform6.core.annotation.log.Id;
import avicit.platform6.core.annotation.log.LogField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;



/** 
 * 资产标签关联表实体
 * 
 */
@ApiModel(value = "AssetTagDTO", description = "资产标签关联表")
@Table(name = "bdp_asset_tag")
public class AssetTagDTO extends BaseDTO {

	/**
	* 主键
	*
	*/
	@LogField
	@ApiModelProperty(value = "主键")
	@FieldRemark(column = "id", field = "id", name = "主键")
	@Column(name = "id")
	@Id
	@javax.persistence.Id
	private String id;

	/**
	 * 资产ID
	 * 
	 */
	@LogField
	@ApiModelProperty(value = "资产ID")
	@FieldRemark(column = "asset_id", field = "assetId", name = "资产ID")
	@Column(name = "asset_id")
    private String assetId;
	/**
	 * 标签ID
	 * 
	 */
	@LogField
	@ApiModelProperty(value = "标签ID")
	@FieldRemark(column = "tag_id", field = "tagId", name = "标签ID")
	@Column(name = "tag_id")
    private String tagId;

	@Transient
	private String tagName;

	@Override
	public String getId() {
		return id;
	}

	@Override
	public void setId(String id) {
		this.id = id;
	}

	public String getAssetId() {
		return assetId;
	}

	public void setAssetId(String assetId) {
		this.assetId = assetId;
	}

	public String getTagId() {
		return tagId;
	}

	public void setTagId(String tagId) {
		this.tagId = tagId;
	}

	public String getTagName() {
		return tagName;
	}

	public void setTagName(String tagName) {
		this.tagName = tagName;
	}
}

